﻿<!DOCTYPE html>
<html>
     <head>
          <meta charset="UTF-8">
          <title></title>
     </head>
	 <script src="js/base.js"></script>
		<script>
			//开启一个定时器，每隔1000毫秒执行指定的代码
			setInterval("test()",1000);
			function test(){
				var myDate = new Date(); //执行这句代码的那一刻的时间，会记录在myDate对象当中
				
				document.getElementById("showtime")["innerHTML"] = date2string(myDate);
			}
		</script>
     <body>
		<!-- 
		<button onclick="test()">显示时间</button>
		-->
		<p id="showtime"></p>
     </body>
</html>
